package com.fit.piris.dao.user.fanpage;

import java.util.List;

import org.apache.tapestry5.hibernate.annotations.CommitAfter;

import com.fit.piris.entities.fanpage.FanPage;
import com.fit.piris.entities.user.fanpage.UserFanPage;

public interface UserFanPageDAO {

	@CommitAfter
	public boolean save(UserFanPage userFanPage);

	@CommitAfter
	public boolean delete(UserFanPage userFanPage);

	@CommitAfter
	public boolean update(UserFanPage userFanPage);

	@CommitAfter
	public boolean deleteByID(Long idUser, Long idFanPage);

	public UserFanPage findByID(Long idUser, Long idFanPage);

	public boolean isLiked(Long idUser, Long idFanPage);
	
	public List<UserFanPage> findAllForUser(Long idUser);
	
}
